package com.gitee.pifeng.monitoring.ui.business.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Time;
import java.util.ArrayList;
import java.util.Date;

/**
 * <p>
 * 数链对象表
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_link_latest")
@Schema(description = "数据链路对象")
public class TLinkLatest implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "link_name", type = IdType.AUTO)
    private String linkName;

    @TableField("sub_link_name")
    private String subLinkName;

    @TableField("process_name")
    private String processName;

    @TableField("running_on")
    private Long runningOn;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("latest_check_time")
    private Double latestCheckTime;

    @TableField("latest_process_stat")
    private Double latestProcessStat;

    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private Time lagTime;

    @TableField("show_name")
    private String showName;

    @TableField(exist = false)
    private String abnormal;
}
